<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	
	<ui:component>
		<table class="results" id="conf_mq_configuration">
			<thead>
				<tr><th colspan="2"><h:outputText value="#{msgs['config.content.mq.title']}" /></th></tr>
				<tr>
					<td><h:outputText value="#{msgs['config.content.mq.subtitle1']}" /></td>
					<td><h:outputText value="#{msgs['config.content.mq.subtitle2']}" /></td>
				</tr>
				<tr>
					<td colspan="2" class="message">
						<h:outputText value="#{brokerConfigTypeActionHandler.message}"/>					
					</td>
				</tr>
			</thead>
			<tbody class="results">
				<h:form id="mqConfigTypeForm"> 
				<tr class="cells">
					<td width="200px">
						<h:selectBooleanCheckbox id="cb_default" value="#{brokerConfigTypeActionHandler.mqDefaultConfig}" onclick="cbDefaultSelected()"/>
						<h:outputText value="#{msgs['config.content.mq.default']}" />
					</td>
					<td><h:outputText value="#{msgs['config.content.mq.default.e']}" /></td>
				</tr>
				<tr class="cells">
					<td>
						<h:selectBooleanCheckbox id="cb_postgres" value="#{brokerConfigTypeActionHandler.mqPostgresConfig}" onclick="cbPostgresSelected()"/>
						<h:outputText value="#{msgs['config.content.mq.postgres']}" />
					</td>
					<td><h:outputText value="#{msgs['config.content.mq.postgres.e']}" /></td>
				</tr>				
				<tr class="cells">
					<td>
						<h:selectBooleanCheckbox id="cb_throughput" value="#{brokerConfigTypeActionHandler.mqThroughputConfig}" onclick="cbTpSelected()"/>
						<h:outputText value="#{msgs['config.content.mq.throughput']}" />
					</td>
					<td><h:outputText value="#{msgs['config.content.mq.throughput.e']}" /></td>
				</tr>
				<tr class="cells">
					<td>
						<h:selectBooleanCheckbox id="cb_server" value="#{brokerConfigTypeActionHandler.mqServerConfig}" onclick="cbServerSelected()"/>
						<h:outputText value="#{msgs['config.content.mq.server']}" />
					</td>
					<td><h:outputText value="#{msgs['config.content.mq.server.e']}" /></td>
				</tr>	
				<tr class="even">
					<td colspan="2" align="right">
						<h:commandButton value="#{msgs['config.content.mq.save']}" action="#{brokerConfigTypeActionHandler.saveConfigType}"/>						
					</td>
				</tr>
				</h:form>
			</tbody>
		</table>
		<br/>
		<br/>
	
	</ui:component>
</html>	